package org.openrbac.rbac.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.openrbac.rbac.entity.ProductStore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author 梁富贵
* @description 针对表【product_store】的数据库操作Mapper
* @createDate 2024-06-05 23:30:06
* @Entity org.openrbac.rbac.entity.ProductStore
*/
@Mapper
public interface ProductStoreMapper extends BaseMapper<ProductStore> {
     @Select("select id,size,color,stock from product_store where gid = #{productId}")
     List<ProductStore> selectAllProductConditionByProductId(@Param("productId") int productId);
}




